﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeBehind="sensor99_list.aspx.cs" Inherits="HYSoft.Web.sensor99_list" %>

<%@ Register Src="~/Controls/menu.ascx" TagName="Menus" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .main
        {
            margin-left: auto;
            margin-right: auto;
            width: 1140px;
            height: auto;
            background-color: White;
        }
        .part_wss
        {
            width: 789px;
            height: auto;
            margin-left: 180px;
            text-align: left;
        }
        .part_ws_bt
        {
            height: 34px;
            line-height: 34px;
            background: url(../images/biaotilan.png) no-repeat;
            font-family: "微软雅黑";
            font-size: 14px;
            padding-left: 22px;
            color: #fff;
            letter-spacing: 1px;
            border-top: 1px solid #d1d1d1;
            border-right: 1px solid #d1d1d1;
            border-left: 1px solid #d1d1d1;
        }
        .part_7
        {
            width: 787px;
            float: left;
            margin: auto;
            height: auto;
            margin-top: 75px;
            border-bottom: 1px solid #d1d1d1;
        }
        .part_7_left
        {
            width: 400px;
            height: auto;
            float: left;
            margin-top:-50px;
        }
        .part_7_left td
        {
            height: 25px;
        }
        .part2_1
        {
            width: 95px;
            height: 22px;
            background: url(../images/2.jpg) no-repeat;
            font-weight: bold;
            text-align: center;
            line-height: 22px;
            color: #ffff00;
            margin: auto;
            margin-top: 25px;
        }
        .part_7_right
        {
            margin-left: 50%;
            height: 280px;
            background: url(../images/1.jpg) no-repeat;
            padding-left: 10px;
            padding-top: 20px;
            margin-top: 30px;
        }
        .part_7_right3
        {
            width: 340px;
            height: 280px;
            background: url(../images/1.jpg) no-repeat;
            padding-left: 10px;
            padding-top: 8px;
            float: left;
            margin-top: 10px;
        }
        .part_7_right2
        {
            width: 230px;
            height: 195px;
            background: url(../images/1_2.jpg) no-repeat;
            padding-left: 5px;
            padding-top: 5px;
            float: left;
        }
        .p7_1
        {
            width: 230px;
            height: 190px;
            background: url(../images/1_2.jpg) no-repeat;
            padding-left: 5px;
            padding-top: 5px;
        }
        .part_7_ws
        {
            width: 760px;
            height: 305px;
            margin: auto;
            margin-top: 20px;
        }
        .part_7_3
        {
            width: 789px;
            margin: auto;
            margin-bottom: 20px;
        }
        .part_7_w1
        {
            width: 92%;
            height: 20px;
            background: url(../images/p_3.jpg) left no-repeat;
            padding-left: 20px;
            line-height: 20px;
            margin: auto;
            float: left;
            margin-left: 25px;
        }
        .part_7_w2
        {
            width: 92%;
            margin: auto;
            margin-top: 70px;
        }
        .part_7_w2 li
        {
            width: 228px;
            margin-right: 13px;
            float: left;
        }
        .part_a1
        {
            width: 787px;
            float: left;
            border-left: 1px solid #d1d1d1;
            border-right: 1px solid #d1d1d1;
            background: url(../images/w_p5.jpg) bottom repeat-x;
            margin-top:0px;
            height: auto;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolderMenu" runat="server">
    <uc3:Menus ID="menus" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPlaceHolderMain" runat="server">
    <div class="main">
        <div>
            <img src="Images/top.PNG" /></div>
        <div class="part_wss">
            <div class="part_ws_bt">
                摄像头基本状态</div>
            <div class="part_a1">
                <div class="part_7">
                    <div class="part_7_left">
                        <asp:Repeater ID="Repeater1" runat="server">
                            <ItemTemplate>
                                <table width="95%" border="0" align="right" cellpadding="0" cellspacing="0" style="margin-top: 10px;">
                                    <tr>
                                        <td width="19">
                                            <img src="images/p_3.jpg" width="12" height="12" />
                                        </td>
                                        <td width="276" style="text-align: left;">
                                            传感器类型：摄像头
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="images/p_3.jpg" width="12" height="12" />
                                        </td>
                                        <td style="text-align: left;">
                                            Mac地址： &nbsp;<%#Eval("mac").ToString()%></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="images/p_3.jpg" width="12" height="12" />
                                        </td>
                                        <td style="text-align: left;">
                                            手机卡号： &nbsp;<%#Eval("simno").ToString()%></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="images/p_3.jpg" width="12" height="12" />
                                        </td>
                                        <td style="text-align: left;">
                                            安装位置： &nbsp;<%#Eval("addr")%></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="images/p_3.jpg" width="12" height="12" />
                                        </td>
                                        <td style="text-align: left;">
                                            所属监测点： &nbsp;<%#data_addrname(Eval("areano").ToString())%></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="images/p_3.jpg" width="12" height="12" />
                                        </td>
                                        <td style="text-align: left;">
                                            所属监测员： &nbsp;<%#Eval("name")%></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="images/p_3.jpg" width="12" height="12" />
                                        </td>
                                        <td style="text-align: left;">
                                            监测员手机： &nbsp;<%#Eval("Mobile")%></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="images/p_3.jpg" width="12" height="12" />
                                        </td>
                                        <td style="text-align: left;">
                                            传感器状态： &nbsp;<%#data_zhuangt(Eval("chuanganqi").ToString())%></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="images/p_3.jpg" width="12" height="12" />
                                        </td>
                                        <td style="text-align: left;">
                                            报警级别： &nbsp;<%#data_jibie(Eval("intvalue3").ToString())%></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="images/p_3.jpg" width="12" height="12" />
                                        </td>
                                        <td style="text-align: left;">
                                            最新状态时间： &nbsp;<%#Eval("charvalue2").ToString()%></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="images/p_3.jpg" width="12" height="12" />
                                        </td>
                                        <td style="text-align: left;">
                                            温度状态： &nbsp;<%#data_zhuangt(Eval("wendu").ToString())%></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="images/p_3.jpg" width="12" height="12" />
                                        </td>
                                        <td style="text-align: left;">
                                            电池状态： &nbsp;<%#data_zhuangt(Eval("dianchi").ToString())%></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="images/p_3.jpg" width="12" height="12" />
                                        </td>
                                        <td style="text-align: left;">
                                            供电模式： &nbsp;<%#Eval("gongdian").ToString()%></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="images/p_3.jpg" width="12" height="12" />
                                        </td>
                                        <td style="text-align: left;">
                                            电量状态： &nbsp;<%#data_zhuangt(Eval("dianliang").ToString())%></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="images/p_3.jpg" width="12" height="12" />
                                        </td>
                                        <td style="text-align: left;">
                                            摄像头采集频率： &nbsp;<%#Eval("rate0").ToString()%>(小时)
                                        </td>
                                    </tr>
                                    <%if (Session["uwrite"].ToString() == "1") %>
                                    <%{ %>
                                    <tr>
                                        <td colspan="6">
                                            <div class="part2_1">
                                                <a href="edit99.aspx?mac=<%#Eval("mac") %>" style="color: #ffff00;">编辑传感器</a></div>
                                        </td>
                                        <td colspan="6">
                                            <div class="part2_1">
                                                <asp:LinkButton ID="lbtnPaiZhao" ForeColor="#ffff00" Text="立即拍照" OnClientClick="if(confirm('确定修改')){return true;}else{return false;}"
                                                    OnClick="lbtnPaizhao_Click" runat="server"></asp:LinkButton></div>
                                        </td>
                                    </tr>
                                    <%}%>
                                </table>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                    <div class="part_7_right2">
                        安装照片<img src="<%=tux %>" width="220" height="165" /></div>
                    <div class="part_7_right2">
                        最新照片<img src="<%=nowtux%>" width="220" height="165" /></div>
                    <div class="clear">
                    </div>
                    <div style="height: 20px; width: 100%; float: left;">
                    </div>
                </div>
                <div class="part_7_w1">
                    已拍照片浏览：</div>
                <div class="part_7_w2">
                    <ul>
                        <asp:Repeater ID="Repeater2" runat="server">
                            <ItemTemplate>
                                <li style="float: left; width: 320px; text-decoration: none; list-style: none;">
                                    <div class="p7_1" >
                                        <a href='shoucang.aspx?photoid=<%#Eval("index") %>'><a href="<%#Eval("Charvalue") %>"
                                            target="_blank">
                                            <img src="<%#Eval("Charvalue") %>" width="220" height="180" /></a></div>
                                    <div class="p7_2" style="height: 40px; line-height: 40px;">
                                        拍摄时间：<%#DateTime.Parse(Eval("chartime").ToString()).ToString("yyyy年MM月dd日HH时mm分ss秒")%></div>
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                <br />
                <table style="width: 615px;" id="beck" runat="server" cellpadding="0" cellspacing="0"
                    align="left">
                    <tr>
                        <td style="width: 500px; text-align: right; font-size: 9pt; height: 15px;">
                            <asp:Label ID="labCP" runat="server" Text="当前页码为："></asp:Label>
                            [
                            <asp:Label ID="labPage" runat="server" Text="1"></asp:Label>
                            ]
                            <asp:Label ID="labTP" runat="server" Text="总页码为："></asp:Label>
                            [
                            <asp:Label ID="labBackPage" runat="server"></asp:Label>
                            ]&nbsp;<asp:LinkButton ID="lnkbtnOne" runat="server" Font-Underline="False" ForeColor="Red"
                                OnClick="lnkbtnOne_Click">第一页</asp:LinkButton>
                            <asp:LinkButton ID="lnkbtnUp" runat="server" Font-Underline="False" ForeColor="Red"
                                OnClick="lnkbtnUp_Click">上一页</asp:LinkButton>
                            <asp:LinkButton ID="lnkbtnNext" runat="server" Font-Underline="False" ForeColor="Red"
                                OnClick="lnkbtnNext_Click">下一页</asp:LinkButton>&nbsp;
                            <asp:LinkButton ID="lnkbtnBack" runat="server" Font-Underline="False" ForeColor="Red"
                                OnClick="lnkbtnBack_Click" Width="48px">最后一页</asp:LinkButton>&nbsp;&nbsp;
                        </td>
                    </tr>
                </table>
                <div class="clear" style="background: #eaebef;">
                </div>
            </div>
            <div class="part_7_3">
                <img src="images/10.jpg" width="789" height="13" /></div>
            <div class="part_2_7">
            </div>
        </div>
    </div>
</asp:Content>
